/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * FloorUI.java
 *
 * Created on 01/09/2011, 1:49:25 PM
 */
package Interface;

import java.awt.Dimension;
import javax.swing.JLabel;

/**
 *
 * @author James Barker
 */
public class FloorUI extends javax.swing.JPanel {

    String floorNumber;
    
    
    /** Creates new form FloorUI */
    public FloorUI(String floorNumber, int width, int height) {
        initComponents();
        this.floorNumber = floorNumber;
        this.floorNumberLbl.setText(floorNumber);
        this.setPreferredSize(new Dimension(width, height));
    }
    
    public String getFloorNumber() {
        return this.floorNumber;
    }
    
    

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        floorNumberLbl = new javax.swing.JLabel();

        setBackground(new java.awt.Color(255, 255, 255));
        setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));

        floorNumberLbl.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        floorNumberLbl.setText("0");

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
        this.setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGap(11, 11, 11)
                .addComponent(floorNumberLbl, javax.swing.GroupLayout.PREFERRED_SIZE, 37, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(floorNumberLbl, javax.swing.GroupLayout.DEFAULT_SIZE, 30, Short.MAX_VALUE)
                .addContainerGap())
        );
    }// </editor-fold>//GEN-END:initComponents

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JLabel floorNumberLbl;
    // End of variables declaration//GEN-END:variables
}
